import request from '@/utils/request'

// 查询微信通知公告列表
export function listWx_notice(query) {
  return request({
    url: '/business/wx_notice/list',
    method: 'get',
    params: query
  })
}

// 查询微信通知公告详细
export function getWx_notice(noticeId) {
  return request({
    url: '/business/wx_notice/' + noticeId,
    method: 'get'
  })
}

// 新增微信通知公告
export function addWx_notice(data) {
  return request({
    url: '/business/wx_notice',
    method: 'post',
    data: data
  })
}

// 修改微信通知公告
export function updateWx_notice(data) {
  return request({
    url: '/business/wx_notice',
    method: 'put',
    data: data
  })
}

// 删除微信通知公告
export function delWx_notice(noticeId) {
  return request({
    url: '/business/wx_notice/' + noticeId,
    method: 'delete'
  })
}

// 导出微信通知公告
export function exportWx_notice(query) {
  return request({
    url: '/business/wx_notice/export',
    method: 'get',
    params: query
  })
}